Sets the starting and ending values of a range, and applies it.
procedure SetRange(const StartValues: array of System.TVarRec; const EndValues: array of System.TVarRec; StartExlusive: Boolean = False; EndExclusive: Boolean = False);
Call SetRange to specify a range and apply it to the dataset. The new range replaces the currently specified range, if any.
SetRange combines the functionality of SetRangeStart, SetRangeEnd, and ApplyRange in a single procedure call. SetRange performs the following functions:
After a call to SetRange, the cursor is left on the first record in the range.
If either StartValues or EndValues has fewer elements than the number of fields in the current index, then the remaining entries are ignored when performing a search.